package com.ikangtai.shecare.common.baseView.collectionList;

import android.content.Context;

// for EventBus use
public class CollectionBean {
    private String collectionID;
    private String collectionTitle;
    private int articleId;
    private int collectionFrom;
    private String collectionDate;
    private int collectionDelete;

    private int respCode;

    public String getAuthToken() {
        return authToken;
    }

    public void setAuthToken(String authToken) {
        this.authToken = authToken;
    }

    public int getRespCode() {
        return respCode;
    }

    public void setRespCode(int respCode) {
        this.respCode = respCode;
    }

    private String authToken;

    public String getCollectionID() {
        return collectionID;
    }

    public void setCollectionID(String collectionID) {
        this.collectionID = collectionID;
    }

    public String getCollectionTitle() {
        return collectionTitle;
    }

    public void setCollectionTitle(String collectionTitle) {
        this.collectionTitle = collectionTitle;
    }

    public int getArticleId() {
        return articleId;
    }

    public void setArticleId(int articleId) {
        this.articleId = articleId;
    }

    public int getCollectionFrom() {
        return collectionFrom;
    }

    public void setCollectionFrom(int collectionFrom) {
        this.collectionFrom = collectionFrom;
    }

    public String getCollectionDate() {
        return collectionDate;
    }

    public void setCollectionDate(String collectionDate) {
        this.collectionDate = collectionDate;
    }

    public int getCollectionDelete() {
        return collectionDelete;
    }

    public void setCollectionDelete(int collectionDelete) {
        this.collectionDelete = collectionDelete;
    }

    public String getLocalCollectImagUrl(Context context){
        return "file://" + context.getExternalCacheDir().getAbsolutePath() + "/" + "collectedArticle" + getArticleId() + ".jpg";
    }
}
